{ INFORMATICS.MCCME.RU
  Problem statement: http://informatics.mccme.ru/moodle/mod/statements/view3.php?chapterid=117
  Verdict: Accepted
}
var n:int64;
begin
reset(input,'input.txt');
rewrite(output,'output.txt');
readln(n);
if n=0 then writeln(0);
while n>0 do begin
	write(n mod 2);
	n:=n div 2;
end;
end.